Release 10.1A: OpenEdge Development:
Progress Dynamics Repository Reference
gst_context_scope table — gstcs
This table defines the scope of server context data, either by session or by user. If the context scope is for a user, then the context data in
gsm_server_contextpersists across sessions and remains valid until deleted or until it expires. There is a flag ongsc_security_controlthat indicates when user context data should expire. This aids storing context for a user that can be reused in new sessions, such as shopping cart information that can persist between Web sessions. For user context scope, thesession_objis set to 0 and a validuser_objmust be specified.If the context scope is for a session, then the context data in the
gsm_server_contexttable is only valid for the duration of a single session. In this case, thesession_objis specified and theuser_objis 0. A name is given to the scope record to identify the scope. This is useful for context scoped to a user and can be used through APIs to retrieve specific types of scopes. Where the scope name is not required or specified, it is automatically set to the string value of thecontext_scope_objto make it a unique number. The scope name is only unique for active context, that is, whiletransaction_completeis no. Once context is complete, the scope name is irrelevant and can be duplicated. This unique validation must be handled in code.When dealing with transaction data, many context scope records could exist for a single session for a single transaction. When this is the case, the parent scope object ID identifies which scope records together form the complete transaction. The record with a parent of 0 is the top parent scope. For example, this happens on the Web when dealing with parent and child data, such as order and order lines as a single transaction across multiple Web pages. An order might contain many order lines, and the order lines have a common set of fields with different values in each case. The data stored in the
gsm_server_contexttable points at a different context scope record to handle the same data fields existing in context for different records. The framework can gather context data across multiple Web pages for multiple records, and then commit the entire set of data as a single transaction.The
transaction_completeflag is only set for the top parent context scope where the object ID is 0. It indicates that the transaction is finished and can be tidied up by the framework. Thesession_completeflag ongst_sessioncan override this behavior when that flag is set toYESand the context data is session scoped. Additionally, the scope name must be unique for context scope where thetransaction_completeflag isNO.Table 13–23 lists the table’s FLA, fields, and foreign keys.
Table 13–24 gives details of the table’s indexes.
|
Copyright © 2005 Progress Software Corporation www.progress.com Voice: (781) 280-4000 Fax: (781) 280-4095 |